package com.fowo.api.service.handleWork;

import com.fowo.api.model.shop.profit.report.ShopProfitReportBatchPushJindieAction;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

@Component
public class shopProfitReportBatchPushJindie implements ShopProfitReportBatchPushJindieAction {

    @Resource
    private shopProfitReportPushJindie shopProfitReportPushJindie;
    @Override
    public void run(List<Long> idList) throws Exception {

            for (int i=0;i<idList.size();i++){
                Long aLong = idList.get(i);
                try {
                    shopProfitReportPushJindie.run(aLong);
                }catch (Exception e){
                }
            }
    }
}
